﻿using MyAbpFrame.Application.LocalHandlers.HandlerEvents;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus;

namespace MyAbpFrame.WebMvc
{
    //事件可以由0个或多个处理程序订阅.
    public class MyHandler : ILocalEventHandler<StockCountChangedEvent>, ITransientDependency
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="eventData"></param>
        /// <returns></returns>
        public async Task HandleEventAsync(StockCountChangedEvent eventData)
        {
            var id = eventData.ProductId;
            var num = eventData.NewCount;
            await Task.CompletedTask;
        }
    }
}
